<onevent> element

The <onevent> element associates a state transition, or intrinsic event, with a task. When the intrinsic event occurs, the device performs the associated <onevent> task.

Syntax

where task represents the action to perform when the intrinsic event occurs:
 
task You can specify any one of the following actions for the <onevent> element: 
<go> 
<prev> 
<noop> 
<refresh> 
(see <go> element)
(see <prev> element)
(see <noop> element)
(see <refresh> element

Attributes

 
type Identifies the intrinsic event that triggers the specified <onevent> task (see descriptions below). If a card-level <onevent> element (i.e. defined within a <card> element) has the same type as a deck-level <onevent> element (i.e. defined within a <template> element), the card-level binding overrides the deck-level binding. 
You can specify the following values for the type attribute: 
type value  Perform task if ... 
onpick  User selects or deselects an <option> item (see <option> element). 
onenterforward  User navigates to a card through a <go> task. 
onenterbackward  User navigates to a card through a <prev> task or invokes the PREV mechanism (for example, presses the BACK key). 
ontimer  A specified <timer> element expires (see <timer> element).